<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<button type="button" id="btn">按钮</button>
	</body>
	<script type="text/javascript">
		
let name = `孟凡博	曾珍	 吴建华	郭子民	白家林
生杰贵	司清晨	李玉蝶	刘一鸣	祝尊强
刘海天	仇冉冉	刘晶晶	惠龙锦	吕春源
朱庆	赵雪华	马春雨	靳国庆	乔景浩
秦庚尧	张焱	 郭龙飞	樊前通	扶宇
郭荣晨	李忠旺	焦攀龙	龚家顺	张强		张豪`


	let arr = name.split(/\s+|\t+|\n/m);
	
	
	
	console.log(arr.length)
	let result = [];
	document.getElementById("btn").onclick = function(){
		let num = Math.floor(Math.random()*arr.length);
		result.push(arr[num]);
		arr.splice(num,1) //把选中那个删除掉
		console.log(result)
	}
	const all_datas = [
		{
			date:"2021.4.23",
			student:["曾珍", "祝尊强", " 郭龙飞", "李玉蝶", "焦攀龙"]
		},
		{
			date:"2021.4.25",
			student:["祝尊强", "扶宇", "赵雪华", "张焱", "曾珍"]
		},
		{
			date:"2021.4.26",
			student:["朱庆", "吕春源", "张焱", "靳国庆", "樊前通"]
		},
		{
			date:"2021.4.27",
			student: ["刘晶晶", "司清晨", "仇冉冉", "焦攀龙", " 吴建华"]
		},
		{
			date:"2021.4.27",
			student: ["刘海天", "郭荣晨", " 郭龙飞", " 吴建华","生杰贵"]
		},
		{
			date:"2021.4.27",
			student: ["郭子民", "仇冉冉", "李玉蝶", "祝尊强", "刘一鸣"]
		},
		{
			date:"2021.4.28",
			student: ["曾珍", "秦庚尧", "张强", "乔景浩", "刘晶晶"]
		},	
		{
			date:"2021.5.7",
			student: ["孟凡博", "秦庚尧", "马春雨", "李忠旺", "惠龙锦"]
		},
		{
			date:"2021.5.8",
			student: ["孟凡博", "秦庚尧", "马春雨", "李忠旺", "惠龙锦"]
		}
	]

	
		
	</script>
</html>
